package com.tihaizhushou.sys.controller;

import com.tihaizhushou.common.core.utils.R;
import com.tihaizhushou.sys.domain.SysUser;
import com.tihaizhushou.sys.service.SysUserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 系统用户服务控制器
 *
 * @author wz
 * @since 2023-12-11 14:06:28
 * @description 
 */
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/sys/v1")
public class SysUserController {
    private final SysUserService sysUserService;

    @GetMapping("/list")
    public R<List<SysUser>> list() {
        List<SysUser> list = sysUserService.list();
        return R.ok(list);
    }

}